import Vue from 'vue';
import { formatTime } from '@/common/utils/parseTime';


// 日期过滤器
Vue.filter("formatTime", (originVal) => {
    return formatTime(originVal, "{y}-{m}-{d} {h}:{i}:{s}")
})

// 日期过滤器
Vue.filter("formatDate", (originVal) => {
    return formatTime(originVal, "{y}-{m}-{d}")
})

Vue.filter("formatMD", (originVal) => {
    return formatTime(originVal, "{m}月{d}日 周{a}")
})